import net.sf.json.JSONObject;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @projectName: ngsapitask-hst
 * @package: cn.com.kh
 * @className: Tao_Dev
 * @author: LiJT
 * @description: TODO
 * @date: 2023-01-12 16:50
 * @version: 1.0
 */
public class Tao_Dev {
    private static final Log log = LogFactory.getLog(Tao_Dev.class);

    public static void main(String[] args) throws Exception {

        String url = "{\n" + "   \"array\" : [\n" + "      {\n" + "         \"text\" : \"<img src=\\\"https://cs.mgbl.com.my/webchat/download?file=2023-03-17/inWmf7IviIupload\\\" />\",\n" + "         \"title\" : \"\",\n" + "         \"type\" : \"richText\"\n" + "      },\n" + "      {\n" + "         \"autoPlay\" : true,\n" + "         \"list\" : [\n" + "            {\n" + "               \"img\" : \"https://ccc.davco.cn/ngs/fs/get?file=richeditor/1cbdea8b19b1a4b0f268e44cec941897.png\"\n" + "            },\n" + "            {\n" + "               \"img\" : \"https://ccc.davco.cn/ngs/fs/get?file=richeditor/1a8cd958230a95a9712943638f45a18a.png\",\n" + "               \"url\" : \"https://mp.weixin.qq.com/s/ICwmbUUyVCL08coslxwCkA\"\n" + "            }\n" + "         ],\n" + "         \"title\" : \"\",\n" + "         \"type\" : \"carousel\"\n" + "      }\n" + "   ],\n" + "   \"setting\" : {\n" + "      \"justifyContent\" : \"flex-end\"\n" + "   }\n" + "}";

        JSONObject rightData = JSONObject.fromObject(url);
        System.out.println(rightData);

    }
}